#include "OctreeBox.h"

namespace WuguiEngine
{
	namespace Graphics
	{
		OctreeBox::OctreeBox(float _minx, float _miny, float _minz, 
			float _maxx, float _maxy, float _maxz)
		{
			minx = _minx;
			miny = _miny;
			minz = _minz;
			maxx = _maxx;
			maxy = _maxy;
			maxz = _maxz;
			midPosition = D3DXVECTOR3((minx + maxx) / 2,
				(miny + maxy) / 2,
				(minz + maxz) / 2);
			length = maxx - minx;
		}
	}
}